package com.project.bean;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 采购商品中间表实体类
 */
@Data
@Api(tags = "采购视图")
@TableName(value = "sys_purchaseProduct")
public class PurchaseProductBean {
    @ApiModelProperty(value = "编号",hidden = true)
    @TableId(value = "pk_purchaseProductId")
    private int id;

    @ApiModelProperty(value = "采购商品数量")
    private int purchaseNum;

    private ProductBean productBean;
    private PurchaseBean purchaseBean;

    public PurchaseProductBean() {
    }

    public PurchaseProductBean(int purchaseNum, int  productId) {
        this.purchaseNum = purchaseNum;
        this.productBean = new ProductBean();
        this.productBean.setId(productId);
    }


}
